<?php

namespace common\model;

use think\model\RelationModel;

class ProjectDelayConfirmConfigModel extends RelationModel
{

    //自动验证
    protected $_validate = [

        ['project_id', '', '', self::MUST_VALIDATE, 'require'],
        ['step_category_id', '', '', self::MUST_VALIDATE, 'require'],
        ['confirm_user_id ', '', '', self::MUST_VALIDATE, 'require'],

        ['project_id', '', '', self::EXISTS_VALIDATE, 'integer'],
        ['step_category_id', '', '', self::EXISTS_VALIDATE, 'integer'],
        ['confirm_user_id', '', '', self::EXISTS_VALIDATE, 'integer'],


    ];

    //自动完成
    protected $_auto = [
        ['created_by', 'fill_created_by', self::MODEL_INSERT, 'function'],
        ['created', 'time', self::MODEL_INSERT, 'function'],
    ];

}
